/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.domain.bo;

import com.comac.ins.common.core.validate.AddGroup;
import com.comac.ins.common.core.validate.EditGroup;
import com.comac.ins.common.mybatis.core.domain.BaseEntity;
import com.comac.ins.isfd.domain.IsfdAlgorithmConfig;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 算法配置存储业务对象 isfd_algorithm_config
 *
 * @author Lion Li
 * @date 2025-05-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IsfdAlgorithmConfig.class, reverseConvertGenerate = false)
public class IsfdAlgorithmConfigBo extends BaseEntity {

    /**
     * 对象存储主键
     */
    @NotNull(message = "对象存储主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 算法名称
     */
    @NotBlank(message = "算法名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String algorithmName;

    /**
     * 算法业务类型：section（型材算法）
     */
    @NotBlank(message = "算法业务类型：section（型材算法）不能为空", groups = {AddGroup.class, EditGroup.class})
    private String algorithmType;

    /**
     * 实现语言：python、javascript
     */
    @NotBlank(message = "实现语言：python、javascript不能为空", groups = {AddGroup.class, EditGroup.class})
    private String algorithmLanguage;

    /**
     * 入参，以json格式
     */
    private String param;

    /**
     * 算法实现代码或脚本
     */
    @NotBlank(message = "算法实现代码或脚本不能为空", groups = {AddGroup.class, EditGroup.class})
    private String implementation;

    /**
     * 算法描述
     */
    @NotBlank(message = "算法描述不能为空", groups = {AddGroup.class, EditGroup.class})
    private String description;

    /**
     * 是否为默认算法，0-默认，1-手动新增
     *
     * @see com.comac.ins.isfd.constant.enums.IsfdAlgorithmConfigIsDefaultEnum
     */
    private Integer isDefault;
}
